#include "StdAfx.h"
#include ".\mliststd.h"

template <class T>
MListStd<T>::MListStd(void)
{
}

template <class T>
MListStd<T>::~MListStd(void)
{
	Clear();
}

template <class T>
void MListStd<T>::Clear(void)
{
	theList.clear();
}

template <class T>
bool MListStd<T>::AddFirst(T dataIn)
{
	theList.push_front(dataIn);
}

template <class T>
bool MListStd<T>::AddLast(T dataIn)
{
	theList.push_back(dataIn);
}

template <class T>
int MListStd<T>::GetCount(void)
{
	return theList.size();
}

template <class T>
T MListStd<T>::GetFirst(void)
{
	iter = theList.begin();
	return *iter;
}

template <class T>
T MListStd<T>::GetNext(void)
{
	iter++;
	return *iter;
}
